Projects each element of this view to a collection of collections, flattens the resulting collections into one collection, and invokes a result selector function on each element therein.

Namespace:  C1.LiveLinq.LiveViews
Assembly:  C1.LiveLinq (in C1.LiveLinq.dll)

Syntax

C#
public View<TResult> SelectMany<TCollection, TResult>(
	Expression<Func<T, IObservableSource<TCollection>>> collectionSelector,
	Expression<Func<T, TCollection, TResult>> resultSelector
)
Visual Basic
Public Function SelectMany(Of TCollection, TResult) ( _
	collectionSelector As Expression(Of Func(Of T, IObservableSource(Of TCollection))), _
	resultSelector As Expression(Of Func(Of T, TCollection, TResult)) _
) As View(Of TResult)

Parameters

collectionSelector
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T, IObservableSource<(Of <(<'TCollection>)>)>>)>)>>)>)>
A transform function to apply to each element of this view.
resultSelector
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T, TCollection, TResult>)>)>>)>)>
A transform function to apply to each element of the intermediate collection.

Type Parameters

TCollection
The type of the intermediate elements collected by collectionSelector.
TResult
The type of the elements of the resulting view.

Return Value

A view whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of this view and then mapping each of those collection elements and their corresponding source element to a result element.

See Also